export default {
    state: {
        hasRequest: false
    },
    mutations: {
        setState (state, obj) {
            state = Object.assign(state, obj)
        }
    },
    actions: {
        async setHasRequest ({commit}, flag) {
            commit('app/setState', {hasRequest: flag})
        }
    }
}